/***************************************************
> Copyright (C) 2024 ==LENA== All rights reserved.
> File Name: 7.8上午练习1.c
> Author: lena
> Mail:lena_li@126.com
> Created Time: 2024年07月07日 星期日 20时44分25秒
***************************************************/

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
float bmi(float high,float weight);
int main(int argc,const char* argv[])
{
	float high=0,weight=0;
	scanf("%f %f",&high,&weight);
	bmi(high,weight);
	return 0;
}
float bmi(float high,float weight){
	int num=0;
	num=weight/pow(high,2);
	if(num<18.5){
		printf("偏瘦,注意加强营养");
	}else if(num>18.5&&num<23.9){
		printf("体重指数良好，注意保持");
	}else {
		printf("你有点胖，注意锻炼");
	}
	return num;
}
